Optimal. Leaf size=66 \[ \frac{b n \text{PolyLog}\left (2,-\sqrt{e} x\right )}{2 \sqrt{e}}-\frac{b n \text{PolyLog}\left (2,\sqrt{e} x\right )}{2 \sqrt{e}}+\frac{\tanh ^{-1}\left (\sqrt{e} x\right ) \left (a+b \log \left (c x^n\right )\right )}{\sqrt{e}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0387247, antiderivative size = 66, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 4, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.19, Rules used = {206, 2324, 12, 5912} \[ \frac{b n \text{PolyLog}\left (2,-\sqrt{e} x\right )}{2 \sqrt{e}}-\frac{b n \text{PolyLog}\left (2,\sqrt{e} x\right )}{2 \sqrt{e}}+\frac{\tanh ^{-1}\left (\sqrt{e} x\right ) \left (a+b \log \left (c x^n\right )\right )}{\sqrt{e}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 2324
Rule 12
Rule 5912
Rubi steps
\begin{align*} \int \frac{a+b \log \left (c x^n\right )}{1-e x^2} \, dx &=\frac{\tanh ^{-1}\left (\sqrt{e} x\right ) \left (a+b \log \left (c x^n\right )\right )}{\sqrt{e}}-(b n) \int \frac{\tanh ^{-1}\left (\sqrt{e} x\right )}{\sqrt{e} x} \, dx\\ &=\frac{\tanh ^{-1}\left (\sqrt{e} x\right ) \left (a+b \log \left (c x^n\right )\right )}{\sqrt{e}}-\frac{(b n) \int \frac{\tanh ^{-1}\left (\sqrt{e} x\right )}{x} \, dx}{\sqrt{e}}\\ &=\frac{\tanh ^{-1}\left (\sqrt{e} x\right ) \left (a+b \log \left (c x^n\right )\right )}{\sqrt{e}}+\frac{b n \text{Li}_2\left (-\sqrt{e} x\right )}{2 \sqrt{e}}-\frac{b n \text{Li}_2\left (\sqrt{e} x\right )}{2 \sqrt{e}}\\ \end{align*}
Mathematica [A] time = 0.0247137, size = 72, normalized size = 1.09 \[ \frac{b n \text{PolyLog}\left (2,-\sqrt{e} x\right )-b n \text{PolyLog}\left (2,\sqrt{e} x\right )+\left (\log \left (1-\sqrt{e} x\right )-\log \left (\sqrt{e} x+1\right )\right ) \left (-\left (a+b \log \left (c x^n\right )\right )\right )}{2 \sqrt{e}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.145, size = 200, normalized size = 3. \begin{align*} -{(-{\frac{i}{2}}b\pi \,{\it csgn} \left ( i{x}^{n} \right ) \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{2}+{\frac{i}{2}}b\pi \,{\it csgn} \left ( i{x}^{n} \right ){\it csgn} \left ( ic{x}^{n} \right ){\it csgn} \left ( ic \right ) +{\frac{i}{2}}b\pi \, \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{3}-{\frac{i}{2}}b\pi \, \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{2}{\it csgn} \left ( ic \right ) -b\ln \left ( c \right ) -a){\it Artanh} \left ( x\sqrt{e} \right ){\frac{1}{\sqrt{e}}}}-{\ln \left ( x \right ) bn{\it Artanh} \left ( x\sqrt{e} \right ){\frac{1}{\sqrt{e}}}}+{b\ln \left ({x}^{n} \right ){\it Artanh} \left ( x\sqrt{e} \right ){\frac{1}{\sqrt{e}}}}-{\frac{\ln \left ( x \right ) bn}{2}\ln \left ( 1-x\sqrt{e} \right ){\frac{1}{\sqrt{e}}}}+{\frac{\ln \left ( x \right ) bn}{2}\ln \left ( x\sqrt{e}+1 \right ){\frac{1}{\sqrt{e}}}}-{\frac{bn}{2}{\it dilog} \left ( 1-x\sqrt{e} \right ){\frac{1}{\sqrt{e}}}}+{\frac{bn}{2}{\it dilog} \left ( x\sqrt{e}+1 \right ){\frac{1}{\sqrt{e}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (-\frac{b \log \left (c x^{n}\right ) + a}{e x^{2} - 1}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} - \int \frac{a}{e x^{2} - 1}\, dx - \int \frac{b \log{\left (c x^{n} \right )}}{e x^{2} - 1}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int -\frac{b \log \left (c x^{n}\right ) + a}{e x^{2} - 1}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]